package com.dimong.www.loan.ui.act;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.dimong.loan.sdk.ui.act.BaseFragmentActivity;
import com.dimong.www.loan.R;
import com.dimong.www.loan.ui.frag.main.ProdListFrag;
import com.dimong.www.loan.widget.ActionBarView;

/**
 * Created by wuligang on 2018/5/10.
 */

public class ProdListActivity extends BaseFragmentActivity {
    private ActionBarView title_prod_list;

    @Override
    public void initIntentParam(Intent intent) {

    }

    @Override
    public void beforeInitView() {

    }

    @Override
    public int getContentView() {
        return R.layout.act_prod_list;
    }

    @Override
    public void initView() {
        title_prod_list = findViewById(R.id.title_prod_list);
    }

    @Override
    public void setViewStatus() {
        String title = getIntent().getStringExtra("title");
        title_prod_list.setTitle(title);
        title_prod_list.setLeftImg(new ActionBarView.OnLeftImgClickListener() {
            @Override
            public void onClick(View img) {
                finish();
            }
        });
        ProdListFrag prodListFrag = new ProdListFrag();
        Bundle bundle = new Bundle();
        bundle.putString("classify_id",getIntent().getStringExtra("classify_id"));
        prodListFrag.setArguments(bundle);
        getSupportFragmentManager().beginTransaction().add(R.id.content, prodListFrag).commit();
    }

    @Override
    public void onActResume() {

    }

    @Override
    public void onActPause() {

    }

    @Override
    public void onActDestroy() {

    }

    @Override
    public void onActRestart() {

    }

    @Override
    public void onActStop() {

    }

    @Override
    public void onActStart() {

    }
}
